_BASEDIR="./naturalDocs"
_GENERATED="./generated"

documentCMD="perl $_BASEDIR/NaturalDocs -i ../../bruteforce/ -o FramedHTML $_GENERATED -p ./project"
echo $documentCMD
$documentCMD

function svnSetMimeType {
	for f in $(find $_GENERATED -iname "$1")
	do
	if [ -a $f ]; then
		updateCMD="svn propset svn:mime-type $2 $f"
		echo $updateCMD
		$updateCMD
	fi
	done
}

svnSetMimeType "*.text" "text/plain"
svnSetMimeType "*.html" "text/html"
svnSetMimeType "*.css" "text/css"
svnSetMimeType "*.png" "image/png"
svnSetMimeType "*.jpg" "image/jpeg"
svnSetMimeType  "*.js" "text/javascript"
